#pragma once

#include "SnakeBody.h"

// 蛇
class Snake {
    private: SnakeBody* mCauda; // 蛇尾
    private: int mDirection;    // 移动方向
    private: SnakeBody* mHead;  // 蛇头

    public: Snake(QPixmap*);
    public: virtual ~Snake();
    public: void eat(SnakeBody*);
    public: SnakeBody* getHead();
    public: bool move();
    public: bool pointIsOnMe(QPoint*);
    public: void turn(int);
};
